package com.jpush.gateway.config;

import org.springframework.security.authentication.ReactiveAuthenticationManager;
import org.springframework.security.web.server.authentication.AuthenticationWebFilter;

public class WebFluxTokenAuthenticationFilter extends AuthenticationWebFilter {

    public WebFluxTokenAuthenticationFilter(SpringSecurityTemplate template) {
        super(template.roleTxnManager());
        this.setServerAuthenticationConverter(new WebFluxTokenAuthenticationConverter());
    }
}
